package com.sekill.order.mapper;

import com.sekill.order.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gao
 * @since 2021-06-18
 */
@Repository
public interface OrderMapper extends BaseMapper<Order> {

    Order order(@Param("orderId")Long orderId,@Param("userId") Long userId);

    int addorder(@Param("order") Order order);

    int findbyuseridandskuid(@Param("orderId")Long orderId,@Param("userId") Long userId);
}

